<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFhProductContentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('fh_product_content', function (Blueprint $table) {
            $table->increments('id');
            $table->string('t_name')->default('')->comment('内容名称');
            $table->text('t_content')->comment('内容详情');
            $table->integer('product_id')->comment('产品ID');
            $table->tinyInteger('show')->default('1')->nullable()->comment('是否显示');
            $table->integer('sort')->default('1')->nullable()->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('fh_product_content');
    }
}
